import http from '@/common/http/http'

export function csCourseThemeListApi(data){
	return http({
		url:`/course/csCourseTheme/list`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csSubjectQueryListApi(data){
	return http({
		url:`/course/csSubject/queryList`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function paymentCouresApi(data){
	return http({
		url:`/course/csPurchaseCourseOrder/paymentCoures`,
		isToken : true,
		isOpenId : true,
		data,
	})
}

export function queryPageDateilListApi(data){
	return http({
		url:`/course/csPurchaseCourseOrder/queryPageDateilList`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csPurchaseCourseOrderApplyForUnsubApi(data){
	return http({
		url:`/course/csPurchaseCourseOrder/applyForUnsub`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csSubjectOrderApplyForUnsubApi(data){
	return http({
		url:`/course/csSubjectOrder/applyForUnsub`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csSubjectOrderListApi(data){
	return http({
		url:`/course/csSubjectOrder/myOrder`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csCoursePayOrderListApi(data){
	return http({
		url:`/course/csCoursePayOrder/myUnpayOrder`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csCoursePayOrderDetailListApi(data){
	return http({
		url:`/course/csCoursePayOrder/detailList`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csCoursePayOrderPaymentApi(data){
	return http({
		url:`/course/csCoursePayOrder/payment`,
		isToken : true,
		isOpenId: true,
		data,
	})
}